/**
 * Created by Administrator on 2017/10/30 0030.
 */
opinion = function () {
    return [
        '<a class="show" href="javascript:void(0)">反馈内容</a>'
    ].join('');
};
//查询商品
bindClick("#feedSelect", function () {
    var checkUserName = $("input[name=checkUserName]").val();
    var url = $().AbsUrlParse("/web/opinion/queryOpinion?checkUserName=" + checkUserName);
    $("#table").bootstrapTable("refresh", {url: url});
});

window.operateEvent = {
    'click .show': function (e, value, row) {
        showModel("showOpinion-div", function () {
            $("#content").val(row.content);
        })
    }
};

source = function (value, row, index) {
    if (row.userId == null) {
        return [
            '<div>商家端</div>'
        ].join('');
    } else if (row.bussId == null) {
        return [
            '<div>用户端</div>'
        ].join('');
    } else if (row.bussId == null || row.userId == null) {
        return [
            '<div>配送端</div>'
        ].join('');
    }
};